import config from "@/config"
import http from "@/utils/request"

export default {
    agreement: {
        list: {
            url: `${config.API_URL}/manage/platform/agreement/list`,
            name: "协议或文章列表",
            get: async function(params={}){
                return await http.get(this.url, params);
            }
        },
        edit: {
            url: `${config.API_URL}/manage/platform/agreement/edit`,
            name: "协议或文章编辑",
            post: async function(data={}){
                return await http.post(this.url, data);
            }
        },
    },
    feedback: {
        list: {
            url: `${config.API_URL}/manage/platform/feedback/list`,
            name: "用户反馈列表",
            get: async function(params={}){
                return await http.get(this.url, params);
            }
        },
        info: {
            url: `${config.API_URL}/manage/platform/feedback/info`,
            name: "用户反馈详情",
            get: async function(params={}){
                return await http.get(this.url, params);
            }
        },
        delete: {
            url: `${config.API_URL}/manage/platform/feedback/delete`,
            name: "用户反馈详情",
            post: async function(params={}){
                return await http.post(this.url, params);
            }
        },
    },
}